package cn.engage.ekcc.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@AllArgsConstructor
@NoArgsConstructor
public enum GlobalExceptionEnum {
    OK("成功","1"),
    ERROR("失败","-1"),
    // 微服务的公共错误码100开头
    COMMON_PARAM_IS_NULL_ERROR("参数为空异常！", "1001"),
    COMMON_PARAM_ILLEGAL_ERROR("非法参数异常！", "1002"),
    COMMON_PARAM_JSR303_ERROR("JSR303异常！", "1003"),
    ;
    private String message;

    private String code;

}
